package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 消费记录实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "消费记录实体类")
@TableName("consumption")
public class Consumption extends BaseEntity {
    /**
     * 消费id
     */
    private Long id;

    /**
     * 入住记录id
     */
    private Long checkInId;

    /**
     * 服务项目id
     */
    private Integer serviceItemId;

    /**
     * 消费时间
     */
    private LocalDateTime consumptionTime;

    /**
     * 消费数量
     */
    private Integer consumptionNum;

    /**
     * 消费总金额
     */
    private BigDecimal consumptionPrice;

    /**
     * 项目名称
     */
    @TableField(exist = false)
    private String name;

    /**
     * 项目单价
     */
    @TableField(exist = false)
    private BigDecimal unitPrice;

}